<% def springSecurityService = application.getAttribute("org.codehaus.groovy.grails.APPLICATION_CONTEXT").getBean("springSecurityService") %>
<% def stringManagerService = application.getAttribute("org.codehaus.groovy.grails.APPLICATION_CONTEXT").getBean("stringManagerService") %>


<g:if test="${stringManagerService.checkObjectInString(springSecurityService?.currentUser,comment?.likes)}">
${stringManagerService.countMemberInString(comment?.likes)} People like this. <g:remoteLink controller="comment" action="dislike" id="${comment?.id}" update="show_like_comment${comment?.id}"><input type="submit" class="btn_dislike" value=""/></g:remoteLink>
</g:if><g:else>
${stringManagerService.countMemberInString(comment?.likes)} People like this. <g:remoteLink controller="comment" action="like" id="${comment?.id}" update="show_like_comment${comment?.id}"><input type="submit" class="btn_like" value=""/></g:remoteLink>
</g:else>